import request from '@/utils/request'

export function listReportType(query) {
  return request({
    url: '/system/report/type/list',
    method: 'get',
    params: query
  })
}

export function getReportType(code) {
  return request({
    url: '/system/report/type/' + code,
    method: 'get'
  })
}

export function addReportType(data) {
  return request({
    url: '/system/report/type',
    method: 'post',
    data: data
  })
}

export function updateReportType(data) {
  return request({
    url: '/system/report/type',
    method: 'put',
    data: data
  })
}

export function delReportType(codes) {
  return request({
    url: '/system/report/type/' + codes,
    method: 'delete'
  })
}

